#ifndef STYLESHEETSET_H
#define STYLESHEETSET_H

#include <QString>

/*
 * 样式配置：TabWidget
 * 参考来源：https://blog.csdn.net/weixin_39568531/article/details/103389354?spm=1001.2101.3001.6650.2&utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-2-103389354-blog-117554600.pc_relevant_antiscanv2&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-2-103389354-blog-117554600.pc_relevant_antiscanv2&utm_relevant_index=5
*/
static QString gStyle_TabWidgetSet = QString("QTabWidget{\
                                                background-color:transparent;\
                                             }\
                                             QTabBar::tab{\
                                                 background:rgb(14, 106, 175);\
                                                 color:white;\
                                                 min-width:25ex;\
                                                 min-height:6ex;\
                                             }\
                                             QTabBar::tab:selected{\
                                                 border-color: black;\
                                                 background:red;\
                                                 color:white;\
                                             }");

/*
 * 样式配置：QPushButton 按钮水晶按钮
 * 参考来源：https://blog.csdn.net/hss2799/article/details/114120739
*/
static QString gStyle_PushButton_Blue = QString("QPushButton {\
                             background:qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1,\
                             stop:0 rgba(199, 238, 249, 255),\
                             stop:0.25 rgba(132, 217, 243, 255),\
                             stop:0.5 rgba(80, 200, 238, 255),\
                             stop:0.65 rgba(87, 203, 239, 255),\
                             stop:1 rgba(186, 233, 249, 255));\
                             border: 2px solid rgb(106,208,240);\
                             border-radius: 3px;}");

static QString gStyle_PushButton_Purple = QString("QPushButton {\
                              background:qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1,\
                              stop:0 rgba(250, 204, 246, 255), \
                              stop:0.25 rgba(243, 144, 236, 255), \
                              stop:0.5 rgba(238, 81, 223, 255),\
                              stop:0.65 rgba(239, 92, 225, 255), \
                              stop:1 rgba(249, 186, 243, 255));\
                              border: 2px solid rgb(240,102,255);\
                              border-radius: 3px; }");

static QString gStyle_PushButton_Green = QString("QPushButton {\
                               background:qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1,\
                               stop:0 rgba(204, 250, 227, 255), \
                               stop:0.25 rgba(126, 242, 185, 255),\
                               stop:0.5 rgba(76, 237, 157, 255), \
                               stop:0.65 rgba(91, 239, 166, 255), \
                               stop:1 rgba(184, 248, 217, 255));\
                               border: 2px solid rgb(78,238,158);\
                               border-radius: 3px; }");

static QString gStyle_PushButton_Red = QString("QPushButton {\
                                background:qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1,\
                                stop:0 rgba(249, 202, 201, 255), \
                                stop:0.25 rgba(242, 126, 126, 255), \
                                stop:0.5 rgba(237, 78, 78, 255), \
                                stop:0.65 rgba(238, 89, 89, 255), \
                                stop:1 rgba(247, 175, 175, 255));\
                                border: 2px solid rgb(237,80,78);\
                                border-radius: 3px; }");

static QString gStyle_PushButton_Yellow = QString("QPushButton {\
                                 background:qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1,\
                                 stop:0 rgba(247, 250, 204, 255),\
                                 stop:0.25 rgba(236, 243, 133, 255),\
                                 stop:0.5 rgba(226, 237, 76, 255),\
                                 stop:0.65 rgba(229, 239, 91, 255),\
                                 stop:1 rgba(229, 233, 160, 255));\
                                 border: 2px solid rgb(225,238,78);\
                                 border-radius: 3px;}");

/*
 * 样式配置：TabWidget
 * 参考来源：https://blog.csdn.net/hss2799/article/details/112985778
*/
#if 0
static QString gStyle_TreeView = QString("QTreeView{"
                                "font-size:%2px;"
                                "show-decoration-selected:1;"
                                "selection-background-color:qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1,stop:0 rgba(255, 255, 255, 255), stop:0.5 rgba(235, 247, 253, 255), stop:1 rgba(213, 237, 250, 255));"
                                "color:black; "
                                "background-color: rgb(255, 255, 255);	"
                                "}"
                                "  QTreeView::item {"
                                "      height:%1px;"
                                "      border: 1px solid rgb(200, 200, 200);"
                                "      border-left-color: transparent;"
                                "      border-top-color: transparent;"
                                "  }"
                                "  QTreeView::item:selected {"
                                "      background:rgb(255,255,255);"
                                "background-color:qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1,stop:0 rgba(255, 255, 255, 255), stop:0.5 rgba(235, 247, 253, 255), stop:1 rgba(213, 237, 250, 255));"
                                "border: 1px solid rgb(65,173,255);"
                                "}"
                                ""
                                "  QTreeView::item:selected:active{"
                                "color:rgb(0,0,0);"
                                "background-color:qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1,stop:0 rgba(255, 255, 255, 255), stop:0.5 rgba(235, 247, 253, 255), stop:1 rgba(213, 237, 250, 255));"
                                "border: 1px solid rgb(65,173,255);"
                                "}"
                                ""
                                "  QTreeView::item:selected:!active {"
                                "       color:rgb(0,0,0);"
                                "background-color:qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1,stop:0 rgba(255, 255, 255, 255), stop:0.5 rgba(235, 247, 253, 255), stop:1 rgba(213, 237, 250, 255));"
                                "border: 1px solid rgb(65,173,255);"
                                "}"
                                "  QTreeView::branch:has-siblings:!adjoins-item {"
                                "      border-image: url(:/jsontree/resource/jsontree/vline.png) 0;"
                                "  }"
                                ""
                                "  QTreeView::branch:has-siblings:adjoins-item {"
                                "      border-image: url(:/jsontree/resource/jsontree/branch-more.png) 0;"
                                "  }"
                                ""
                                "  QTreeView::branch:!has-children:!has-siblings:adjoins-item {"
                                "      border-image: url(:/jsontree/resource/jsontree/branch-end.png) 0;"
                                "  }"
                                ""
                                "  QTreeView::branch:has-children:!has-siblings:closed,"
                                "  QTreeView::branch:closed:has-children:has-siblings {"
                                "          border-image: none;"
                                "          image: url(:/jsontree/resource/jsontree/branch-closed.png);"
                                "  }"
                                ""
                                "  QTreeView::branch:open:has-children:!has-siblings,"
                                "  QTreeView::branch:open:has-children:has-siblings  {"
                                "          border-image: none;"
                                "          image: url(:/jsontree/resource/jsontree/branch-open.png);"
                                "  }"
                                "QHeaderView::section {background-color:rgb(176, 196, 222);"
                                "      height:%1px;"
                                "border-color:rgb(200,199,199);"
                                "border-style:ridge;"
                                "border-width:1px;}"
                                "QHeaderView::section {"
                                "         font: %2px \"楷体\";"
                                "         font-weight:bold;"
                                "         color: rgb(24, 100, 249);"
                                "         padding-left: 4px;"
                                "         border: 1px solid #e2e2e2;"
                                "         background-color:#cddffe;"
                                " }").arg(20).arg(15);  // 第一个是高度值，第二个是字体大小
#endif
static QString gStyle_TreeView = QString("QTreeView{"
                                "font-size:%2px;"
                                "show-decoration-selected:1;"
                                "selection-background-color:qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1,stop:0 rgba(255, 255, 255, 255), stop:0.5 rgba(235, 247, 253, 255), stop:1 rgba(213, 237, 250, 255));"
                                "color:black; "
                                "background-color: rgb(255, 255, 255);	"
                                "}"
                                "  QTreeView::item {"
                                "      height:%1px;"
                                "      border: 1px solid rgb(200, 200, 200);"
                                "      border-left-color: transparent;"
                                "      border-top-color: transparent;"
                                "  }"
                                "  QTreeView::item:selected {"
                                "      background:rgb(255,255,255);"
                                "background-color:qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1,stop:0 rgba(255, 255, 255, 255), stop:0.5 rgba(235, 247, 253, 255), stop:1 rgba(213, 237, 250, 255));"
                                "border: 1px solid rgb(65,173,255);"
                                "}"
                                ""
                                "  QTreeView::item:selected:active{"
                                "color:rgb(0,0,0);"
                                "background-color:qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1,stop:0 rgba(255, 255, 255, 255), stop:0.5 rgba(235, 247, 253, 255), stop:1 rgba(213, 237, 250, 255));"
                                "border: 1px solid rgb(65,173,255);"
                                "}"
                                ""
                                "  QTreeView::item:selected:!active {"
                                "       color:rgb(0,0,0);"
                                "background-color:qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1,stop:0 rgba(255, 255, 255, 255), stop:0.5 rgba(235, 247, 253, 255), stop:1 rgba(213, 237, 250, 255));"
                                "border: 1px solid rgb(65,173,255);"
                                "}"
                                "  QTreeView::branch:has-siblings:!adjoins-item {"
                                "      border-image: url(:/jsontree/resource/jsontree/vline.png) 0;"
                                "  }"
                                ""
                                "  QTreeView::branch:has-siblings:adjoins-item {"
                                "      border-image: url(:/jsontree/resource/jsontree/branch-more.png) 0;"
                                "  }"
                                ""
                                "  QTreeView::branch:!has-children:!has-siblings:adjoins-item {"
                                "      border-image: url(:/jsontree/resource/jsontree/branch-end.png) 0;"
                                "  }"
                                ""
                                "  QTreeView::branch:has-children:!has-siblings:closed,"
                                "  QTreeView::branch:closed:has-children:has-siblings {"
                                "          border-image: none;"
                                "          image: url(:/jsontree/resource/jsontree/branch-closed.png);"
                                "  }"
                                ""
                                "  QTreeView::branch:open:has-children:!has-siblings,"
                                "  QTreeView::branch:open:has-children:has-siblings  {"
                                "          border-image: none;"
                                "          image: url(:/jsontree/resource/jsontree/branch-open.png);"
                                "  }"
                                "QHeaderView::section {"
                                "         font: %2px \"楷体\";"
                                "         font-weight:bold;"
                                "         color: rgb(24, 100, 249);"
                                "         padding-left: 4px;"
                                "         border: 1px solid #e2e2e2;"
                                "         background-color:#cddffe;"
                                " }" ).arg(20).arg(15);  // 第一个是高度值，第二个是字体大小

static QString gStyle_CheckBox = QString("QCheckBox::indicator:unchecked {    \
                                             border-image: url(:/operationIcons/resource/operationIcons/check_wait.ico);\
                                         }\
                                         QCheckBox::indicator:checked {\
                                             border-image: url(:/operationIcons/resource/operationIcons/check_yes.ico);\
                                         }");


#endif // STYLESHEETSET_H
